package com.fuusy.project.di

import com.owbtgad.common.network.RetrofitManager
import com.shuyihui.identity.CertificationViewModel
import com.shuyihui.identity.IdentityRepo
import com.shuyihui.identity.IdentityService
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module


val moduleCertification = module {
    single {
        RetrofitManager.initRetrofit().getService(IdentityService::class.java)
    }

    single {
        IdentityRepo(get())
    }

    viewModel { CertificationViewModel(get(),get()) }
}